%% Packages declaration
\usepackage{setspace}
\usepackage[helvetica]{quotchap} %% Seems not working with Beamer
%\usepackage[avantgarde,bookman,charter,courier,helvetica,newcentury,palatino,times,utopia]{quotchap}
\usepackage[answerdelayed]{exercise}
%\usepackage{wordlike} %% Fancy Look!
\usepackage{geometry} %% Use wordlike XOR geometry
\usepackage{xcolor}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
%\usepackage{sectsty} %% doesn't work with Beamer
\usepackage{indentfirst}  %% might not be used
%\usepackage{a4wide} %% doesn't work with Beamer
\usepackage{latexsym}
\usepackage{makeidx}
\usepackage{appendix}
\usepackage{subfigure}
%\usepackage[Glenn]{fncychap}
%\usepackage{dropping}

%% package sectsty %% doesn't work with Beamer
%\allsectionsfont{\usefont{OT1}{ppl}{bc}{n}\selectfont}

\setlength{\parindent}{1.0cm}
\fvset{fontsize=\small,numbers=left,frame=leftline}

%% package geometry. Don't use this if wordlike package is used
\geometry{top=2.7cm}
\geometry{left=3.0cm}
\geometry{right=3.0cm}
\geometry{bottom=2.7cm}

%% package algorithm
\renewcommand{\listalgorithmname}{Daftar Algoritme}
\renewcommand{\algorithmiccomment}[1]{//#1}
\floatname{algorithm}{Algoritme}
%% \renewcommand{\appendixtocname}{Lampiran}
%% \renewcommand{\appendixpagename}{Lampiran}

%% provided commands by foils package
% \foilhead[]{}
% \LogoOff
% \LogoOn
% \rotatefoilhead{}

\newtheorem{Contoh}{Contoh}
\newtheorem{definisi}{Definisi}
\newtheorem{Teorema}{Teorema}

%%%%%%%
%% useful notations
%% \and \wedge
%% \element \in
%% \intersection \cap
%% \or \vee
%% \union \cup

\newcommand{\goodgap}{\hspace{\subfigtopskip}\hspace{\subfigbottomskip}}
%% headers and footers are set in individual chapters

% package exercise
%\renewcommand{\ExerciseListName}{L.}
%\newcounter{latihan}[chapter]
\renewcommand{\ExerciseListName}{\arabic{chapter}.}

\makeindex
\begin{document}
%% Titlepage
\begin{titlepage}
  %% Title Properties
 	\title{Desain dan Analisa Algoritme}
	\author{Djasli Djamarus \\ \texttt{djasli@trisakti.ac.id} \and Anung B. Ariwibowo \\ \texttt{barliant@cbn.net.id}}
	\date{Jurusan Teknik Informatika \\ Fakultas Teknologi Industri \\ Universitas Trisakti}
	%% \begin{abstract}
	%% \end{abstract}
	\maketitle %% Title
\end{titlepage}

\begin{frame}
  \titlepage
\end{frame}

%% setspace package
%% \singlespacing
\onehalfspacing
%% \doublespacing

  \pagestyle{fancy}
  \fancyhf{}	%% clear header and footer settings
  %% \fancyhead[LE,RO]{{\scriptsize \rightmark}}
%%  \fancyhead[LO,RE]{{\scriptsize \leftmark}}
%  \fancyhead[LE]{{\scriptsize \textsc{\rightmark}}}
%  \fancyhead[RO]{{\scriptsize \leftmark}}
  \fancyfoot[C]{\thepage}
  \renewcommand{\headrulewidth}{0.3pt}
  \renewcommand{\footrulewidth}{0.3pt}
  
%%%  \chapter{Outline}
%%%  \begin{itemize}
%%%    \item Computability, atau Teori Komputasi.
%%%    \item Algoritma
%%%  \end{itemize}
  
  \include{chStrukturData} % Struktur Data
  \clearemptydoublepage
  \include{chAnalisaAlgoritma} % Analisa Algoritme
  \clearemptydoublepage
  \include{chBruteForce} % Brute Force approach
  \clearemptydoublepage
  \include{chDivideConquer} % Divide and Conquer
  \clearemptydoublepage
  \include{chTransformConquer} % Transform and Conquer
  \clearemptydoublepage
  \include{chDecreaseConquer} % Decrease and Conquer
  \clearemptydoublepage
  \include{chGreedyTechnique} % Greedy Tecnique
  \clearemptydoublepage
  \include{chDynamicProgramming} % Dynamic Programming
  \clearemptydoublepage

%% Appendices
  \appendix
  \addappheadtotoc
%%  \appendixpage
%%  \include{apDataStructure}

  \pagestyle{myheadings}
	\bibliographystyle{alpha}
	%% \bibliographystyle{unsrt}
  \bibliography{anung}

  \printindex
  \addcontentsline{toc}{chapter}{Indeks}
